package pub.tbc.api.invoker.protocol.http.netty;

import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;
import io.netty.handler.codec.http.HttpRequest;

/**
 * @author tbc on 2017/3/8.
 */
public class NettyHttpClient {
    private final EventLoopGroup group = new NioEventLoopGroup();
    private final Bootstrap bootstrap;

    private NettyHttpClient(Bootstrap bootstrap) {
        this.bootstrap = bootstrap;
    }

    private static NettyHttpClient client;

    public static NettyHttpClient getInstance() {
        if (client == null) {
            synchronized (client) {
                if (client == null) {
                    client = null;
                }
            }
        }
        return client;
    }

    public void connect(){

    }



}